import request from '@/utils/request'

export function selectDeptList(query) {
    return request({
        url:"/dept/list",
        method:"get",
        params:query
    })
  }


export function addDept(data) {
    return request({
        url:"/dept/addDept",
        method:"post",
        data:data
    })
  }
  export function updateDept(data) {
    return request({
        url:"/dept/updateDept",
        method:"put",
        data:data
    })
  }
  
  
    export function deleteDept(deptId) {
      return request({
          url:"/dept/"+deptId,
          method:"delete"
      })
    }